<?php
/**
 * Created by PhpStorm.
 * User: leo
 * Date: 2018/9/30
 * Time: 17:08
 */

namespace app\common\validate;


class BannerValidate extends BaseValidate
{
    protected $rule = [
        'name' => 'require',
        'image' => 'require',
        'url' => 'require',
//        'type' => 'require|in:1,2'
//        'sort'  =>  'len'
    ];
    protected $message = [
        'name.require' => '请输入banner名称',
        'image.require' => '请上传banner图片',
        'url.require' => '请输入跳转地址',
//        'type.require' => '请选择banner类型',
//        'type.in' => 'banner类型错误',
    ];
}